package com.indusfo.spc.pojo;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

import com.indusfo.spc.common.pojo.BasePojo;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;

@Table(name = "sys_role_user")
public class RoleUser extends BasePojo {

  @Id
  @Column(name="role_user_id",insertable=false)
  private Integer roleUserId;
  //用户Id
  private Integer userId;
  //角色Id
  private Integer roleId;

  //授权标志
  @Transient
  private Integer fightFlag;

  //授权标志  字典翻译
  @Transient
  private String flghtFlagName;

  //说明
  private String remark;

  //数据状态
  private Integer dataState;

  //用户名翻译
  @Transient
  private String userName;

  //用户名编码翻译
  @Transient
  private String userCode;

  //角色名称
  @Transient
  private String roleName;

  /*创建时间*/
  private Date createDate;

  /*更改时间*/
  private Date modifyDate;


  public Integer getRoleUserId() {
    return roleUserId;
  }

  public void setRoleUserId(Integer roleUserId) {
    this.roleUserId = roleUserId;
  }

  public Integer getUserId() {
    return userId;
  }

  public void setUserId(Integer userId) {
    this.userId = userId;
  }

  public Integer getRoleId() {
    return roleId;
  }

  public void setRoleId(Integer roleId) {
    this.roleId = roleId;
  }

  public Integer getFightFlag() {
    return fightFlag;
  }

  public void setFightFlag(Integer fightFlag) {
    this.fightFlag = fightFlag;
  }

  public String getFlghtFlagName() {
    return flghtFlagName;
  }

  public void setFlghtFlagName(String flghtFlagName) {
    this.flghtFlagName = flghtFlagName;
  }

  public String getRemark() {
    return remark;
  }

  public void setRemark(String remark) {
    this.remark = remark== null ? null : remark.trim().replace(" ","");
  }

  public Integer getDataState() {
    return dataState;
  }

  public void setDataState(Integer dataState) {
    this.dataState = dataState;
  }

  public String getUserName() {
    return userName;
  }

  public void setUserName(String userName) {
    this.userName = userName;
  }

  public String getUserCode() {
    return userCode;
  }

  public void setUserCode(String userCode) {
    this.userCode = userCode;
  }

  public String getRoleName() {
    return roleName;
  }

  public void setRoleName(String roleName) {
    this.roleName = roleName;
  }

  public Date getCreateDate() {
    return createDate;
  }

  public void setCreateDate(Date createDate) {
    this.createDate = createDate;
  }

  public Date getModifyDate() {
    return modifyDate;
  }

  public void setModifyDate(Date modifyDate) {
    this.modifyDate = modifyDate;
  }
}
